<template>
  <div class="common-layout">
    <el-container>
      <el-aside>Aside</el-aside>
      <el-container>
        <el-header>Header</el-header>
        <router-view />
      </el-container>
    </el-container>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import { ElContainer, ElHeader, ElAside } from "element-plus";

export default defineComponent({
  components: {
    ElContainer,
    ElHeader,
    ElAside,
  },
  setup() {},
});
</script>

<style lang="less" scoped>
.common-layout {
  height: 100%;
}
.el-container {
  height: 100%;
}
.el-header {
  height: 30px;
  background: lightgreen;
}

.el-aside {
  width: 240px;
  background: lightcoral;
}

.bg-purple {
  background: #d3dce6;
  height: 300px;
}
</style>
